package com.cxc.observer;

public class ConcreateSubject extends Subject {
    public int state;
    public int getState(){
        return state;
    }

    public void setState(int state) {
        this.state = state;
        //主题对象值发生变化 通知所有观察者
        this.notifyAllObservers();
    }


}
